import { Module, forwardRef } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { PaymentService } from './payment.service';
import { PaymentController } from './payment.controller';
import { PaymentOrder } from '@/database/entities/payment-order.entity';
import { AlipayService } from './services/alipay.service';
import { WechatService } from './services/wechat.service';
import { AuthModule } from '../auth/auth.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([PaymentOrder]),
    forwardRef(() => AuthModule),
  ],
  providers: [PaymentService, AlipayService, WechatService],
  controllers: [PaymentController],
  exports: [PaymentService],
})
export class PaymentModule {}